import Vue from 'vue';
import Router from 'vue-router';
import Index from '@/components/index';
import Diary from '@/components/diary';
import Write from '@/components/write';
import Me from '@/components/me';
Vue.use(Router);

export default new Router({
	routes: [{
			path: '/',
			name: 'Index',
			component: Index
		},{
			path: '/index',
			name: 'Index',
			component: Index
		},
		{
			path: '/diary',
			name: 'Diary',
			component: Diary
		},
		{
			path: '/write',
			name: 'Write',
			component: Write
		}, {
			path: '/me',
			name: 'Me',
			component: Me
		}
	]
})